﻿using FreeSql.DataAnnotations;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Xml.Linq;

namespace PosClient.Model
{
    [Index("uk_pos_id", "StoreCode,PosNo,Status", true)]
    [Table(Name = "t_pos")]
    public class Pos
    {
        [Column(IsPrimary = true, IsIdentity = true)]
        public long Id { get; set; }
        public string StoreCode { get; set; }
        public string StoreName { get; set; }
        [JsonProperty("pos")]
        public string PosNo { get; set; }
        public string AccessToken { get; set; }
        [JsonProperty("payAccount")]
        public string Account { get; set; }
        public string ScreenUrl { get; set; }
        public string Version { get; set; }
        public int Status { get; set; } = 1;
        public DateTime BalanceDate { get; set; } = DateTime.Now;

    }
}
